<include file="Public:header" />
<div class="container">
  <div class="mainbody">
    <div class="rig_lm03">
      <div class="title" ><img src="{$Think.config.static_path}images/listicon.jpg" class="icon" >
        <h2>报名列表</h2>
        <form method="POST" action="" style="margin-left:100px;">
          <input type="text"  class="searcheTxt" placeholder="请输入姓名、电话" name="keys" id="keys" value="<?php echo $_REQUEST['keys']?>">
          <button type="button" onclick="changeSelect()" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-search"></span> 搜索</button>
        </form>
      
      </div>
      <div class="detail">
        <div id="tabCot_product_1" class="tabCot" >
          <table cellspacing="0" cellpadding="0" width="100%" border="0" class="tabindex table-hover">
            <tbody>
              <tr>
                <th>序号</th>
                <th>姓名</th>
                <th>电话</th>
                <th>楼盘信息</th>
                <th>参赛时间</th>
                <th>社群活动</th>
                <th>报名时间</th>
				<th>状态</th>
                <th>操作</th>
              </tr>
              <volist name="list" id="vo" key="key">
                <tr>
                  <td>{$vo.id}</td>
                  <td>{$vo.name}</td>
                  <td>{$vo.tel} </td>
                  <td>{$vo.code_name}</td>
                  <td>{$vo.jointime}</td>
                  <td>{$vo.joinhobby}</td>
                  <td>{$vo.ctime}</td>
				  <td><if condition="$vo.status eq 1">未审核<elseif condition="$vo.status eq 2"/>已审核<else/>已拒绝</if></td>
                  <td>
				  <if condition="$vo.status eq 1">
					<a href="javascript:confirmDelete({$vo.id},'确定通过[{$vo.name}]的申请吗?',2)" title="同意申请">通过</a>&nbsp;|&nbsp; <a href="javascript:confirmDelete({$vo.id},'确定拒绝[{$vo.name}]的申请吗?',3);" title="拒绝申请">拒绝</a>
				  <else/>
					无
				  </if>
				  </td>
                </tr>
              </volist>
            </tbody>
          </table>
          <div class="manu"> {$page} </div>
        </div>
      </div>
    </div>
  </div>
</div>
<include file="Public:footer" /> 
<script type="text/javascript">
$(function(){
	 $('#apply').addClass('seleli');
});

function changeSelect() {
	var keys = $('#keys').val();
    location.href = "__URL__/index?keys=" + keys;
}

function confirmDelete(id,title,status){
	if (confirm(title)) {
       location.href="__URL__/checkInfo?id="+id+'&status='+status;
    }
}


</script>